module Decoder #(
    parameter IN_WIDTH  = 3,
    parameter OUT_WIDTH = 8
) (
    input   logic [IN_WIDTH-1:0]    in,
    output  logic [OUT_WIDTH-1:0]   out
);
    generate
        genvar i;
        for (i = 0; i < OUT_WIDTH; i =i+1) begin: generate_decoder
            assign out[i] = (in == i);
        end
    endgenerate
    // assign out = 1 << in;

endmodule
